#include "demo.h"
#include <QDebug>
#include <QThread>
#include <QEvent>

Demo::Demo(QObject *parent) : QObject(parent)
{

}

bool Demo::event(QEvent *event)
{
    qDebug() << "事件处理线程:"<< QThread::currentThread() << event->type();

    return QObject::event(event);
}

void Demo::identifyByMoc()
{

}

QString Demo::hello(int a, const QString &b)
{
    return b;
}
